package com.xdclass.thread.demo;

/**
 * @Author: Timo
 * @Date: 2019/4/26 10:30
 * @Description: 使用匿名内部类来创建线程
 */
public class MyThread2 {


    public static void main(String[] args){
        Thread thread = new Thread(new Runnable() {
            @Override
            public void run() {
                System.out.println(Thread.currentThread().getName());
            }
        });


    }
}
